package org.liveboardgames.agricola.access.hibernate;

import org.liveboardgames.agricola.access.IFarmTileDao;
import org.liveboardgames.agricola.domain.farm.FarmTile;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class FarmTileHibernateDao extends HibernateDaoSupport implements IFarmTileDao {

  public FarmTile load(Long farmTileId) {
    FarmTile farmTile = (FarmTile)getHibernateTemplate().load(FarmTile.class, farmTileId);
    return farmTile;
  }

  public void save(FarmTile farmTile) {
    getHibernateTemplate().saveOrUpdate(farmTile);
  }

}
